package com.ruoyi.wsc.api.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 客户信息对象 user
 * 
 * @author bigbase
 * @date 2025-05-09
 */
public class Customer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID(主键) */
    private Integer id;

    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickName;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 密码 */
    private String password;

    /** 头像URL */
    @Excel(name = "头像URL")
    private String avatar;

    /** 注册时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date regTime;

    @Excel(name = "用户积分ID")
    private Integer points;

    /** 默认收货地址ID */
    @Excel(name = "默认收货地址ID")
    private Integer defaultAddrId;

    /** 用户状态(0:禁用,1:正常,2:待审核) */
    @Excel(name = "用户状态(0:禁用,1:正常,2:待审核)")
    private Integer status;

    /** 是否删除(0:未删除,1:已删除) */
    private Integer del;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }

    public void setNickName(String nickName) 
    {
        this.nickName = nickName;
    }

    public String getNickName() 
    {
        return nickName;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }

    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }

    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }

    public void setRegTime(Date regTime) 
    {
        this.regTime = regTime;
    }

    public Date getRegTime() 
    {
        return regTime;
    }

    public Integer getPoints() {
        return points;
    }

    public void setPoints(Integer points) {
        this.points = points;
    }

    public void setDefaultAddrId(Integer defaultAddrId)
    {
        this.defaultAddrId = defaultAddrId;
    }

    public Integer getDefaultAddrId() 
    {
        return defaultAddrId;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public void setDel(Integer del) 
    {
        this.del = del;
    }

    public Integer getDel() 
    {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userName", getUserName())
            .append("nickName", getNickName())
            .append("phone", getPhone())
            .append("email", getEmail())
            .append("password", getPassword())
            .append("avatar", getAvatar())
            .append("regTime", getRegTime())
            .append("defaultAddrId", getDefaultAddrId())
            .append("status", getStatus())
            .append("del", getDel())
            .toString();
    }
}
